'''
_init_()
_xx_()的函数就叫魔法方法
'''
class Washer():
    def __init__(self,height,width):
        self.name='pan washer'
        self.height=height
        self.width=width

    def __str__(self):
        return 'this is a washer manual'

    def __del__(self):
        print('对象已经被删除')

    def print_method(self):
        print(f'高度是{self.height},宽度{self.width}')

wash1=Washer(100,200)
print(wash1)
wash1.print_method()
del wash1
'''
_str_方法，写了方法打印对象，不会返回内存地址，输出return的返回值

'''
